/**
*	会议室基本信息管理模块
*
*
*
*/
define(["jquery","sysmanMain","valueUtil","deptSelect"],
		function($,sysmanMain,valueUtil,deptSelect) {
			
		'use strict';
		var rootid = 'panel-conferenceroomBaseinfo';
		
		var window_id = 'conferenceroomBaseinfo-win';
		
		var public_method ={
			
			
			
			rowClick:function(index,data){
				
				if(window.console)
					console.info('inpatient rowClick event fired ...')
				var _config = sysmanMain.getModuConf('inpatientItemFee');
				if(_config ==null){
					_config = {}					
				}	
				
				_config.initQueryParams = {field:'patient_id',fieldVal:data.patient_id}
				sysmanMain.setModuConf('inpatientItemFee',_config)
				sysmanMain.medicalInpatientItemFeeSelect()
			},
			/**
			 * 初始化新增页面
			 * @param _options.record 列表选中行
			 * @param _options.form 页面form对象
			 * @param _options.rootId 页面根节点
			 */
			initEdit:function(_options){
				var _rootpath = '/'+sysmanMain.getRootPath()
				
				var _deptEl = $('#'+window_id +' #conferenceroomBaseinfo_unit_name')
				if(_deptEl.length==1){
					_deptEl.textbox({
						onClickButton:function(){
							deptSelect.openPage({
								deptid:window_id +' #conferenceroomBaseinfo_unit_id',
								deptname:window_id + ' #conferenceroomBaseinfo_unit_name'
							})
						}
					})
				}
			}
			
		}
		
		var private_method ={
			
			initEditList:function(){
				
			}
		}
		return public_method;		
})